//
//  ConcluderTableViewCell.m
//  代理端
//
//  Created by mac on 16/3/3.
//  Copyright © 2016年 sliver. All rights reserved.
//

#import "ConcluderTableViewCell.h"
@interface ConcluderTableViewCell()

@property(nonatomic,strong)UILabel *nameLable;

@property(nonatomic,strong)UILabel *priceLable;

@property(nonatomic,strong)UIView *backview;
@end

@implementation ConcluderTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{

    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        
        [self setupui];
    }
    return self;
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)setupui
{
    self.nameLable = [[UILabel alloc]init];
    [self.contentView addSubview:self.nameLable];
    
    self.priceLable = [[UILabel alloc]init];
    [self.contentView addSubview:self.priceLable];
    
    self.backview = [[UIView alloc]init];
    
    self.backview.backgroundColor = rgb(235, 112, 52, 1);
    self.selectedBackgroundView = self.backview;
   
}
-(void)layoutSubviews
{
    self.nameLable.frame = CGRectMake(10*KScr, 0, self.frame.size.width/2, self.frame.size.height);
    
    self.priceLable.frame = CGRectMake(self.frame.size.width/2+20*KScr, 0, self.frame.size.width/2-40*KScr, self.frame.size.height);
    
    self.backview.frame = self.bounds;
}
-(void)gaveMeprice:(NSString *)price WithName:(NSString *)name
{
    self.nameLable.text = name;
    
    self.priceLable.text = price;

}
@end
